<?php
/* 用户表 */
namespace app\msg\model;


use think\Db;
use think\Model;

class Customer extends Model {


    protected $tableName = 'customer';


    public function getOneCustomerByCustomerID($customer_id)
    {
        $result = Db::name($this->tableName)
                    ->where('id ='.$customer_id)
                    ->find();

        return $result;
    }



    public function insertCustomer($data)
    {
        $result = Db::name($this->tableName)->insert($data);
        return $result;
    }

}